package cn.wolfcode.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Getter
@Setter
public class Employee {
    private Long id;

    private String username;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin;

    //用户状态
    private boolean status;

    private Long deptId;
    //为了在页面上显示所有部门名称，我们必须要把关联属性给设置起来

    private Department dept;

    private List<Role> roles = new ArrayList<>();

}